package main

import (
	"net/http"
	"fmt"
	"log"
)

func main(){
	resp, err := http.Head("https://www.baidu.com")
	if err != nil {
		log.Fatal(err)
		return
	}
	fmt.Println(resp.Status)	// 200 OK
	fmt.Println(resp.StatusCode)	// 200
	fmt.Println(resp.Proto) 	// HTTP/1.1
}
